/* 
 *   Date       Developer   Description
 *   
 *
 *   Classname:  zzz.test.component.bean.Bean01
 * 
 *   Date:   2014-3-11
 * 
 *   The source code contained in this listing is proprietary to
 *   HLJ POST YITONG INFO-NET CO.,LTD.
 * 
 *   Unauthorized copying, adaptation, distribution, use, or display
 *   is strictly prohibited.
 *   This software is Copyright 2014 HLJ POST YITONG INFO-NET CO.,LTD.
 */
package com.titan.demo.camel.sample.component.bean;

import java.util.Date;

import com.titan.core.utils.data.FormatUtils;


/**
 *
 *
 * @author Administrator
 *
 */
public class Bean01 {
    public String doSomething1(String s) {
        return s;
    }
    public String doSomething2(Date s) {
        String date = FormatUtils.dateToString(s, "yyyy-MM-dd");
        return date;
    }

    public String changeSomething(String s) {
        if ("Hello World".equals(s)) {
            return "Bye World";
        }
        return null;
    }

    public void doNothing(String s) {
    }
}

